#ifndef OO_MACRO_H
#define OO_MACRO_H

#include <stddef.h>

#define container_of(ptr, type, member) ({ \
		const typeof( ((type *)0)->member ) *__mptr = (ptr); \
		(type *)( (char *)__mptr - offsetof(type,member) );})

#endif